package com.glsc.ngateway.platform.dto;


import cn.hutool.core.annotation.Alias;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import javax.persistence.Column;

/**
 * cpu规格导入 数据结构
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@JsonInclude
@SuperBuilder
public class VpnExportDto {

    @Alias(value = "账号")
    private String account;

    @Alias(value = "用户名")
    @ApiModelProperty(value = "中文名")
    private String name;

    @Alias(value = "所属组路径")
    @ApiModelProperty(value = "路径名称")
    @Column(name = "path_name", columnDefinition = "varchar(600) comment '路径名称'")
    private String pathName;

    @Alias(value = "描述")
    @ApiModelProperty(value = "描述")
    @Column(name = "remark", columnDefinition = "varchar(255) comment '描述'")
    private String remark;

//    @ApiModelProperty(value = "路径id")
//    @Column(name = "path_id", columnDefinition = "varchar(50) comment '路径id'")
//    private String pathId;

    @Alias(value = "该用户可访问的资源列表")
    @ApiModelProperty(value = "资源列表")
    @Column(name = "resource_name", columnDefinition = "varchar(8500) comment '资源列表'")
    private String resourceName;

    @Alias(value = "最近一次登陆")
    @ApiModelProperty(value = "最近一次登陆时间")
    @Column(name = "last_login_time", columnDefinition = "varchar(30) comment '最近一次登陆时间'")
    private String lastLoginTime;

    @ApiModelProperty(value = "一级部门")
    private String departmentOne;

    @ApiModelProperty(value = "一级部门id")
    private Integer departmentOneId;

    @Column(name = "department_two")
    @ApiModelProperty(value = "二级部门")
    private String departmentTwo;

    @ApiModelProperty(value = "二级部门id")
    private Integer departmentTwoId;

    @ApiModelProperty(value = "公司")
    private String company;

    @ApiModelProperty(value = "状态")
    @Alias(value = "状态")
    private String status;
}
